<?php
namespace app\tp\controller;
use think\Request;
use think\Controller;     //这两个同时出现
use think\Db;
class Dingshi extends Controller  //这两个同时出现


{
    /* 
	public function index14()
	 {
		$name = '无model';
		$age = 205;
		$time = date('Y-m-d h:i:s', time());
		  $table = 'test';   // 数据表名称
		  $up = [            // 新增的项
			 'name' => $name,
			 'age' => $age,
			 'time' => $time,
		  ];		
  
		  $res = Db::name($table)->insert($up);
	
		  echo Db::name($table)->getlastsql();  // model 下获得最后一条sql
		  dump($res);
	 }

*/






}
